Schema Field
constructor(name: String? = null, type: SchemaField.SchemaFieldType? = null, required: Boolean? = null, system: Boolean? = null, hidden: Boolean? = null, presentable: Boolean? = null, id: String? = null, min: JsonPrimitive? = null, max: JsonPrimitive? = null, exceptDomains: List<String>? = null, onlyDomains: List<String>? = null, maxSelect: Int? = null, maxSize: Long? = null, autogeneratePattern: String? = null, pattern: String? = null, primaryKey: Boolean? = null, convertUrls: Boolean? = null, onlyInt: Boolean? = null, values: List<String>? = null, mimeTypes: List<String>? = null, thumbs: List<String>? = null, protected: Boolean? = null, collectionId: String? = null, minSelect: Int? = null, cascadeDelete: Boolean? = null, onCreate: Boolean? = null, onUpdate: Boolean? = null)
Parameters
name
the name given to the schema by the creator
type
the SchemaFieldType assigned to the schema on creation
required
weather or not, the schema is required to have a value. If this is false, the Serializable class should have an optional(?) type
system
whether the schema is part of the pocketbase system
hidden
whether the field is hidden from JSON API and filters
presentable
whether the field should be prioritized in superuser relations
id
the unique ID of the schema